CheckValid
TheCheckValid
method checks whether this extension object is valid and generates an exception if it is not valid.
void CheckValid ();DISCUSSION
Every subclass ofODExtension
must test the extension object's validity at the beginning of the implementation of each of its noninherited methods (except for the subclass-specific initialization method) by calling either this method or theIsValid
method. Unlike theIsValid
method, calling this method has no effect if this extension object is valid; otherwise it generates an exception.If you want to ensure that you make calls only to a valid extension object, without generating an exception, then call the
IsValid
method instead.EXCEPTIONS
kODErrInvalidExtension
- This extension object is invalid and should not be used because its base object no longer exists.
SEE ALSO
TheODExtension::IsValid
method (page 218).
"Implementing Extensions" on page 445 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help